let path = require('path');
let HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
  mode: 'development',
  entry: './src/toast.js',

  devServer: {
    port: 8080
  },

  output: {
    filename: 'bundle.js',
    path: path.join(__dirname, 'dist')
  },

  plugins: [
    new HtmlWebpackPlugin({
      template: './index.html',
      filename: 'index.html',
      minify: {
        removeAttributeQuotes: true,// 双引号
        collapseWhitespace: true//去除空格
      }
    })
  ]
};
